#pragma once
#ifndef STDAFX_H
	#define STDAFX_H
	/* fix for MSVS (C++ 2005 express edition) */
	#if defined(_MSC_VER)
		#define _CRT_SECURE_NO_DEPRECATE
		#define snprintf _snprintf
		#pragma warning (disable: 4312) // disable stupid warnings in code that isnt ours
		#pragma warning (disable: 4244) // disable possible loss of data warnings
		#pragma warning (disable: 4267) // disable possible loss of data warnings
		#pragma warning (disable: 4305) // disable possible loss of data warnings
		#pragma warning (disable: 4996) // disable deprecated
		#pragma warning (disable: 4180) // disable boost generated error
	#endif

	#ifdef WIN32
		#define WIN32_LEAN_AND_MEAN		// Exclude rarely-used stuff from Windows headers
		#include "windows.h"
	#endif

	/* general headers */
	#include <SDL/SDL.h>
	#include <GL/gl.h>
//	#include <algorithm>
	#include <math.h>
	#include <assert.h>
	#include <string>
	#include <stdexcept>
	#include "UTypes.h"
	#include "glext.h"
	#include <GL/glu.h>
	#include "UGlobalGLFunctions.h"
	
	#ifndef WIN32
		#include <unistd.h>
	#endif



	/* Global Defines */
	#define DEBUG

	#if defined(_MSC_VER)
		#pragma warning (default: 4312) // reset disables warning
	#endif
#endif //STDAFX_H
